<%@page import="javax.portlet.PortletPreferences"%>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://alloy.liferay.com/tld/aui" prefix="liferay-ui" %>
<%@ taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet"%>
<portlet:defineObjects />

<%
	PortletPreferences pref = renderRequest.getPreferences();	
%>
<h3>lay thong tin bai viet</h3>
<%
	String tt = (String) session.getAttribute("item");
	if(tt==null){
%>
<portlet:renderURL var="url">
	<portlet:param name="path" value="edit.jsp"></portlet:param>
</portlet:renderURL>
<liferay-ui:form method="post" action="<%=renderResponse.createActionURL().toString() %>">
	<liferay-ui:input name="txtid" type="text"/>
	<liferay-ui:button type="submit" value="OK"/>
</liferay-ui:form>
<liferay-ui:a label="chuyen sang trang thong tin" href="<%=url%>"/>

<%}else{

	out.print(tt);
	
}%>